package com.mdd.admin.service.order;

import com.mdd.admin.validate.order.DeductionRecordsCreateValidate;
import com.mdd.admin.validate.order.DeductionRecordsSearchValidate;
import com.mdd.admin.validate.order.DeductionRecordsUpdateValidate;
import com.mdd.admin.vo.order.DeductionRecordsDetailVo;
import com.mdd.admin.vo.order.DeductionRecordsListedVo;
import com.mdd.common.base.page.PageValidate;
import com.mdd.common.core.PageResult;

/**
 * 还款计划减免记录服务接口类
 * @author LikeAdmin
 */
public interface IDeductionRecordsService {

    /**
     * 还款计划减免记录列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<OrderDeductionRecordsListedVo>
     */
    PageResult<DeductionRecordsListedVo> list(PageValidate pageValidate, DeductionRecordsSearchValidate searchValidate);

    /**
     * 还款计划减免记录详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return OrderDeductionRecordsDetailVo
     */
    DeductionRecordsDetailVo detail(Long id);

    /**
     * 还款计划减免记录新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(DeductionRecordsCreateValidate createValidate);

    /**
     * 还款计划减免记录编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(DeductionRecordsUpdateValidate updateValidate);

    /**
     * 还款计划减免记录删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Long id);

}
